package com.xiaoshuidi.cloud.module.system.framework.oss;

import com.amazonaws.services.s3.AmazonS3;
import com.xiaoshuidi.cloud.module.system.controller.admin.oss.config.OosClientConfig;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(OosClientConfig.class)
public class OssConfiguration {

    @Bean
    public AmazonS3 oosClient(OosClientConfig config) {
        return config.oosClient();
    }
}
